<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>snapshot</title>
		<meta name="keywords" content="关键词" />
		<meta name="description" content="关键词描述" />
		<link rel="stylesheet" href="css/main.css" />
		<script src="js/jquery.min.js"></script>
		<script src="js/main.js" type="text/javascript"></script>
	</head>
	<body>

		<div class="clear"></div>
		<div id='top'>

		</div>
		<div id='main'>
			<div id="mainBody">
				{foreach from=$results item=one}
				<p>
					<span><a href="http://{$img_server}{$one.url}" target="_blank"><img src="http://{$img_server}{$one.url}" width="60px" height="80px"></a>【{$one.id}】【{$one.userid}】【{$one.createdate}】<a href="javascript:void(0);" id="like" onclick="likes({$one.id},{$one.userid},0)">【like】</a>【fen】<a href="javascript:void(0);" id="lahei" onclick="lahei({$one.id})">【lahei】</a></span>
				</p>
				{/foreach}
			</div>
		</div>
		<div id="footer">
			{if $pager}
			共有{$pager.total_count}条，共有{$pager.total_page}页（每页{$pager.page_size}条）：
			<!--在当前页不是第一页的时候，显示前页和上一页-->
			{if $pager.current_page != $pager.first_page}
			<a href="{spUrl c=bops a=photolist page=$pager.first_page}">前页</a> | <a href="{spUrl c=bops a=photolist page=$pager.prev_page}">上一页</a> |
			{/if}
			<!--开始循环页码，同时如果循环到当前页则不显示链接-->
			{foreach from=$pager.all_pages item=thepage}
			{if $thepage != $pager.current_page}
			<a href="{spUrl c=bops a=photolist page=$thepage}">{$thepage}</a>
			{else}
			<b>{$thepage}</b>
			{/if}
			{/foreach}
			<!--在当前页不是最后一页的时候，显示下一页和后页-->
			{if $pager.current_page != $pager.last_page}
			|
			<a href="{spUrl c=bops a=photolist page=$pager.next_page}">下一页</a> | <a href="{spUrl c=bops a=photolist page=$pager.last_page}">后页</a>
			{/if}
			{/if}
		</div>
		<span style="display:none"></span>
	</body>
</html>